<?php
	namespace app\admin\model;
	use think\Model;
use think\Session;

class adminmsg extends Model{
		protected $autoWriteTimestamp = false;
		protected $auto = ['frequency'=>0];
		// protected $timeFormat='Y-m-d H:i:s';
		// protected function setFrequencyAttr($value)
		// {
		// 	return 0;
		// }
		protected function getTimeAttr($value){
			return date("Y-m-d ",$value);

		}
		protected function getTypeAttr($value){
			return $value=='1'?'最新新闻':'优惠政策';

		}
	}
